<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .Main {
            height: 600px;
            width: 1000px;
            display: flex;
            text-align: center;
        }
        
        #leftArea {
            flex-grow: 1;
            width: 100px;
            background-color: lightsalmon;
        }
        
        #rightArea {
            flex-grow: 3;
            /* width: 120px; */
            background-color: lightskyblue;
        }
        
        #sendArea {
            bottom: 10px;
            position: absolute;
        }
        
        #addFriendArea {
            bottom: 10px;
            position: absolute;
        }
        
        #chatMessageArea {
            text-align: left;
        }
    </style>
</head>
<script src="/socket.io/socket.io.js"></script>

<body>
    <div class='Main'>
        <div id='leftArea'>
            <div id='friendListTitle'>好友列表</div>
            <div id='friendList'></div>
            <div id='addFriendArea'>
                <input type="text" id='addUsername'></input>
                <button id='addFriend'>添加好友</button>
            </div>
        </div>
        <div id='rightArea'>
            <div id='currentFriendName'></div>
            <div id='chatMessageArea'></div>
            <div id='sendArea'>
                <input type="text" id='inputContent'></input>
                <button id='send'>发送</button>
            </div>

        </div>
    </div>
    <script src="./chat.js"></script>


</body>

</html>